OBJS = vssim.o calcSSIM.o calcMSSIM.o calcMV.o

LIBS := $(shell pkg-config opencv --cflags --libs)
 
%.o: %.cpp
	@echo 'Building file: $<'
	@echo 'Invoking: GCC C++ Compiler'
	g++ -Wall $(LIBS) -c -o"$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '

# All Target
all: vssim

# Tool invocations
vssim: $(OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C++ Linker'
	g++ -o"vssim" $(OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(OBJS) vssim *.jpg
	-@echo ' '

.PHONY: all clean